﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;
using GeneralDefine;

using System.IO;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace TableModule
{
    [XmlInclude(typeof(TableDataSpeed))]
    public class TableDataSpeed
    {
        public string strName;
        public double dAcc;
        public double dDec;
        public double dStartSpeed;
        public double dEndSpeed;
        public double dMoveSpeed;
        public string strRemark;
        public TableDataSpeed()
        {
            dAcc = 1.0;
            dDec = 1.0;
            dStartSpeed = 10.0;
            dMoveSpeed = 20.0;
            dEndSpeed = 10.0;
            strName = "";
            strRemark = "";
        }
        public TableDataSpeed(TableDataSpeed spd)
        {
            
            strName = spd.strName;
            strRemark = spd.strRemark;
            dAcc = spd.dAcc;
            dDec = spd.dDec;
            dStartSpeed = spd.dStartSpeed;
            dMoveSpeed = spd.dMoveSpeed;
            dEndSpeed = spd.dEndSpeed;

        }
        public string Name
        {
            get
            {
                return strName;
            }
            set
            {
                strName = value;
            }
        }
        public double Acc
        {
            get
            {
                return dAcc;
            }
            set
            {
                dAcc = value;
            }
        }
        public double Dec
        {
            get
            {
                return dDec;
            }
            set
            {
                dDec = value;
            }
        }
        public double StartSpeed
        {
            get
            {
                return dStartSpeed;
            }
            set
            {
                dStartSpeed = value;
            }
        }
      
        public double MoveSpeed
        {
            get
            {
                return dMoveSpeed;
            }
            set
            {
                dMoveSpeed = value;
            }
        }

        public double EndSpeed
        {
            get
            {
                return dEndSpeed;
            }
            set
            {
                dEndSpeed = value;
            }
        }

        public string Remark
        {
            get
            {
                return strRemark;
            }
            set
            {
                strRemark = value;
            }
        }

    }
}
